package com.yesjpt.domain;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;

public abstract class BaseEntity<ID> implements Serializable {

	private static final long serialVersionUID = 2054813493011812469L;

	private ID id;
	private String code; //编码
	private String name; //名称
	private String remark;
	private String creatorId;
	private String updaterId;
	private String ext; //扩展字段
	private Integer sort; //序号
	private Integer isdel = 0; //删除标记
	private String fileId; //附件id
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime = new Date();
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

	// 视图开始
	private JSONObject append; // setView()的时候可能要用
	private String creator;
	private String updater;
	private String statusVal;//状态
	private String typeVal;//类型
	private String typeName;//参照字典
	private String kindVal;//类型
	private String kindName;//类型，参照字典的ID
	private String isdelVal;//删除标记
	private String fileName; //文件名
	private String fileFullUrl; //下载地址
	public ID getId() {
		return id;
	}
	public void setId(ID id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getCreatorId() {
		return creatorId;
	}
	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}
	public String getUpdaterId() {
		return updaterId;
	}
	public void setUpdaterId(String updaterId) {
		this.updaterId = updaterId;
	}
	public String getExt() {
		return ext;
	}
	public void setExt(String ext) {
		this.ext = ext;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Integer getSort() {
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	public Integer getIsdel() {
		return isdel;
	}
	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}
	public String getFileId() {
		return fileId;
	}
	public void setFileId(String fileId) {
		this.fileId = fileId;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public JSONObject getAppend() {
		return append;
	}
	public void setAppend(JSONObject append) {
		this.append = append;
	}
	public String getCreator() {
		return creator;
	}
	public void setCreator(String creator) {
		this.creator = creator;
	}
	public String getUpdater() {
		return updater;
	}
	public void setUpdater(String updater) {
		this.updater = updater;
	}
	public String getStatusVal() {
		return statusVal;
	}
	public void setStatusVal(String statusVal) {
		this.statusVal = statusVal;
	}
	public String getTypeVal() {
		return typeVal;
	}
	public void setTypeVal(String typeVal) {
		this.typeVal = typeVal;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public String getKindVal() {
		return kindVal;
	}
	public void setKindVal(String kindVal) {
		this.kindVal = kindVal;
	}
	public String getKindName() {
		return kindName;
	}
	public void setKindName(String kindName) {
		this.kindName = kindName;
	}
	public String getIsdelVal() {
		return isdelVal;
	}
	public void setIsdelVal(String isdelVal) {
		this.isdelVal = isdelVal;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getFileFullUrl() {
		return fileFullUrl;
	}
	public void setFileFullUrl(String fileFullUrl) {
		this.fileFullUrl = fileFullUrl;
	}

	
}
